import {Component, OnInit} from "@angular/core";
import {Hero} from "../../models/hero";
import {Router, ActivatedRoute} from "@angular/router";

@Component({
  selector: 'heroes',
  templateUrl: './heroes.component.html',
  styleUrls: ['./heroes.component.css']
})
export class HeroesComponent {
  constructor(private router: Router,
              private route: ActivatedRoute) {
    route.params.subscribe(params=>console.log(params))
  }
}
